#ifndef MODEL_H
#define MODEL_H

#include <QWidget>
#include <QTcpSocket>
#include <iostream>

class Model : public QWidget
{
    Q_OBJECT

private:
    int MAX_VIEW = 8;

    int position = 0;

    int car_size[2] = {80, 40};  //(w,h)
    int stick_length = 100;

public:
    explicit Model(QWidget *parent = nullptr);
    void setValue();
    //void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
    void readMessage();

    double theta = 0;

    QTcpSocket *tcpSocket;


signals:

};

#endif // MODEL_H
